package org.ch03.hw.demo05;

/**
 * @author ZJL
 * @date 2025-03-26
 */
public class Cat extends Pet implements Meek,Call{
    private String name;
    public Cat(){

    }
    public Cat(String name){
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                '}';
    }

    @Override
    public void call() {
        System.out.println("喵喵...");
    }
}
